<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/16
 * Time: 16:02
 */
//增加令牌服务
require_once './TokenRedis.php';
$addObg = new TokenRedis();
swoole_timer_tick(1000,function ()use ($addObg){
    echo  $addObg->addToken(1).PHP_EOL;
});
